package cn.lhl.mvc;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by datou on 2017/3/15.
 */
public class ActionMapping {
    private String actionName;
    private String className="cn.lhl.mvc.ActionMapping";
    private String method="execute";
    private Map<String,ResultMapper> results=new HashMap<String, ResultMapper>();
    public ResultMapper getResult(String key){
        return results.get(key);
    }
    public void setResult(ResultMapper result){
        results.put(result.getResultName(),result);
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getActionName() {
        return actionName;
    }

    public void setActionName(String actionName) {
        this.actionName = actionName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }
}
